package com.zyh.fengzhuanghejichengzuoye.test5.domain;

public class Actor extends Person {
    private String school;
    private String works;

    public Actor() {
    }

    public Actor(String name, int age, String sex, String school, String works) {
        super(name, age, sex);
        this.school = school;
        this.works = works;
    }

    public void show(){
        System.out.println("大家好！我是"+getName());
        System.out.println("今年"+getAge());
        System.out.println("我毕业于："+getSchool());
        System.out.println("代表作有："+getWorks());
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getWorks() {
        return works;
    }

    public void setWorks(String works) {
        this.works = works;
    }
}
